Carbon


PBGetFPosAsync

Header: Files.h Carbon status: Supported

Determines the current position of the file mark before reading from or writing to an open file.

OSErr PBGetFPosAsync (
    ParmBlkPtr paramBlock
);
Parameter descriptions
paramBlock

A pointer to a basic File Manager parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The value returned in ioPosOffset is zero-based. Thus, a call to PBGetFPosAsync returns 0 if you call it when the file mark is positioned at the beginning of the file.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)